<%
  #File:    /app/views/manage/permissions/show_editor_group.rhtml
  #Author:  Andrew Stone
  #Created: 10.31.2006
%>
  
<%=start_medium_div_wrapper%>
  <div id="page_title">Showing editor group id: <%=@editor_group.id%></div>
  <div id="medium">
    <table>
      <tbody>
        <tr>
          <td class="req_label">Name:</td>
          <td class="data">
            <%=h(@editor_group.name)%>
          </td>
        </tr>
        <% if @editor_group.user.length > 0 %>
        <tr>
          <td class="req_list_label">* Users:</td>
          <td class="list_data">
            <% 
              @editor_group.user.each do |usr| 
            %>
              <%=h(usr.full_name_with_login)%><br/> 
            <%
              end %>
          </td>
        </tr>
        <% end %>
        <% if @editor_group.folder.length > 0 %>
        <tr>
          <td class="req_list_label">* Folders:</td>
          <td class="list_data">
            <% 
              @editor_group.folder.each do |fldr| 
            %>
              <%=h(fldr.qualified_name)%><br/> 
            <%
              end %>
          </td>
        </tr>
        <% end %>
        <% if @editor_group.page.length > 0 %>
        <tr>
          <td class="req_list_label">* Pages:</td>
          <td class="list_data">
            <% 
              @editor_group.page.each do |pg| 
            %>
              <%=h(pg.qualified_name)%><br/> 
            <%
              end %>
          </td>
        </tr>
        <% end %>
        <% if @editor_group.document_category.length > 0 %>
        <tr>
          <td class="req_list_label">* Document Categories:</td>
          <td class="list_data">
            <% 
              @editor_group.document_category.each do |dc| 
            %>
              <%=h(dc.name)%><br/> 
            <%
              end %>
          </td>
        </tr>
        <% end %>
      </tbody>
    </table>
    <div id="actions">
      <%=secure_links([
          secure_link_to("List",ca("/manage/permissions","list_editor_groups")),
          secure_link_to("Update",ca("/manage/permissions","update_editor_group",@editor_group.id))])%>
    </div>
  </div>
<%=end_div_wrapper%>
